package com.ermao.service;

import com.ermao.pojo.Category;

import java.util.List;

/**
 * @author Ermao
 * Date: 2021/9/7 21:37
 */
public interface CategoryService {
	boolean insertACategory(Integer categoryType, String categoryName);

	boolean deleteACategory(Integer categoryId);

	boolean updateACategory(Integer categoryId, Integer categoryType, String categoryName);

	List<Category> selectAllCategories();

	Category selectCategoryByCategoryId(Integer categoryId);

	Category selectCategoryByCategoryName(String categoryName);
}
